﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace DNA.Mvc
{
    /// <summary>
    /// Present the firend reference of user
    /// </summary>
    [Table("dna_MyFriends")]
    public class Friend
    {
        [Key]
        public int ID { get; set; }

        /// <summary>
        /// Gets/Sets the user name;
        /// </summary>
        [MaxLength(255),Required]
        public string UserName { get; set; }

        /// <summary>
        /// Gets/Sets the user's friend's name.
        /// </summary>
        [MaxLength(255),Required]
        public string FriendName { get; set; }

        /// <summary>
        /// Gets/Sets whether this user is my friend now.
        /// </summary>
        [Required]
        public bool IsFriend { get; set; }

        /// <summary>
        /// Gets/Sets a impression point for this friend
        /// </summary>
        [Required]
        public int Impression { get; set; }

        /// <summary>
        /// Gets/Sets when make firendship
        /// </summary>
        public DateTime Added { get; set; }

        /// <summary>
        /// Gets/Sets the guy is in bad list.
        /// </summary>
        [Required]
        public bool IsBadGuy { get; set; }

        /// <summary>
        /// Gets/Sets the friends group
        /// </summary>
        [MaxLength(255)]
        public string Group { get; set; }
    }
}
